@import '~@alife/aisc-core/purple/scss/index.scss';
@import '~@alife/aone-core/variables/index';

.file-panel {
  border: 1px solid $gray-02;
  border-radius: 4px;
  overflow: hidden;
  &-header {
    background: $gray-01;
    padding: 4px 16px 4px 8px;
    margin-bottom: 0;
    border-bottom: 1px solid $gray-02;

    .file-name {
      font-weight: bold;
      word-break: break-all;
      &-filename {
        .file-icon {
          position: relative;
          top: -1px;
        }
      }
      &-path {
        font-size: 12px;
        font-weight: normal;
        color: $color-text1-2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 12px;
      }
    }
    .file-size {
      color: $color-text1-2;
      font-size: 12px;
    }
  }
  &-body {
    padding: 12px 20px 20px;
    // padding-top: 12px;
    &.onlyPaddingBottom {
      padding: 0 0 20px;
    }
    &.noPadding {
      padding: 0;
    }
    img {
      max-width: 100%;
    }
  }
}

.file-panel-list {
  .file-panel {
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.05);
    margin: 12px 0;
    &:first-child {
      margin-top: 0;
    }
    &:last-child {
      margin-bottom: 0;
    }
  }
}
